import React, { useContext } from "react";

import MyContext from "../contexts/MyContext";

export default function Button() {
  const value = useContext(MyContext);
  console.log(value);

  return (
    <div style={{ color: value.color, background: value.background }}>
      <h1>Button</h1>
    </div>
  );
}
